//package com.wei.frame.sql;
//
//import androidx.annotation.Nullable;
//import androidx.room.Dao;
//import androidx.room.Delete;
//import androidx.room.Insert;
//import androidx.room.OnConflictStrategy;
//import androidx.room.Query;
//import androidx.room.Update;
//
//import com.wei.frame.bean.NewsBean;
//
//import java.util.List;
//
///**
// * 作者:赵若位
// * 时间:2021/7/1 18:19
// * 功能:
// */
//@Dao
//public interface NewsBeanDao {
//
//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    void insert(NewsBean... data);
//
//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    void insert(List<NewsBean> data);
//
//    @Delete
//    void delete(NewsBean data);
//
//    //删除某个字段的对象
//    @Query("DELETE FROM newsBean where uniquekey=:id")
//    void deleteById(@Nullable String id);
//
//    //删除该表所有的数据，但是表的结构，索引都完整
//    @Query("DELETE FROM newbean")
//    void deleteAll();
//
//    @Update
//    void update(NewsBean data);
//
//    @Query("SELECT * FROM newbean")
//    List<NewsBean> query();
//
//    @Query("SELECT *FROM newbean where uniquekey=:id")
//    NewsBean query(@Nullable String id);
//
//
//    //    @Query("SELECT *FROM newbean where CONTAINS(title,'meme')")
////    @Query("SELECT *FROM newbean where title like :titles Order by date asc")
//    //条件查询
//    @Query("SELECT *FROM newbean where title like '%'||:title||'%' Order by date asc")
//    List<NewsBean> queryById(@Nullable String title);
//}
